package com.groupa.project1.chat;
import com.groupa.project1.chat.interfaces.Content;
import com.groupa.project1.database.PhotoClass;
import java.io.Serializable;
/**
 *
 * @author groupA
 */
public class ContentClass implements Content, Serializable {
    /** Representa un contenido y sus características  */
    byte[] bits;
    boolean isThumbnail;
    PhotoClass P;
    
    public ContentClass(byte[] bits, PhotoClass P){
      this.bits = bits;  
      this.P = P;
    }
    public byte[] getArray(){
        return bits;   
    }
    public PhotoClass getPhoto(){
        return P;   
    } 
    public boolean isThumbnail(){
        return isThumbnail;   
    }
    public void setIsThumbnail(boolean isThumbnail){
       this.isThumbnail = isThumbnail;   
    }
    
}